import request from '@/utils/request';
import fileRequest from '@/utils/fileRequest';


/*TODo 注意,如果是psot请求,不加params  ,get请求需要加上*/

export function tagPage(params) {
  let data = {
    "current":params.current,
    "size":params.size,
    "content":params.content,
    "status":params.status
  };
  return request({
    url: '/tag/page',
    method: 'get',
    params:data
  })
}

// 导出excel
export function exportExcel(obj){
  let data = {
    "content":obj.content,
    "status":obj.status
  };
  fileRequest({
    url: '/tag/exportTag',
    method: 'get',
    responseType:'blob',
    params:data,
  })
}

// 详情查询
export function getDetail(id){
  let data = {
    "id":id + '',
  };
  return request({
    url: '/tag/getDetail',
    method: 'get',
    params:data
  })
}